<extend name="Template:main/content" />
<block name="page-content-wrapper-content">
	<table class="table table-bordered table-striped with-check">
		<thead>
			<tr>
				<th>
					<input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" />
				</th>
				<th width="30px">序号</th>
				<th>代理账号</th>
				<th >代理编号</th>
				<th >年月</th>
				<th >月总消费</th>
				<th >月总提成</th>
				<th >提成比率</th>
				<th >是否结算</th>
				<th >创建时间</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="v">
				<tr>
					<td>
						<input type="checkbox" data='{$v.id}' />
					</td>
					<td>
						<div class="numerical">
							{$key+1}
						</div>
					</td>
					<if condition="$v['agent_id'] eq 0">
						<th>系统</th>
						<th >系统</th>
					<else/>
						<th>{$v.agent_info.username}</th>
						<th >{$v.agent_info.agent_code}</th>
					</if>
					<th >{$v.date}</th>
					<th >{$v.consume}</th>
					<th >{$v.commission}</th>
					<th >{$v.rate}</th>
					<th ><if condition="$v['status'] eq 2">已结算<else/>未结算 </if></th>
					<th >{$v.created|date="Y-m-d H:i:s",###}</th>
				</tr>
			</volist>
			<tr>
					<td>/</td>
					<td>/</td>
					<th >/</th>
					<th >/</th>
					<th style="color:green;font-size:20px;">所有页面数据合计:</th>
					<th style="color:green;font-size:20px;" >{$consume}</th>
					<th style="color:green;font-size:20px;" >{$commission}</th>
					<th >/</th>
					<th >/</th>
					<th >/</th>
				</tr>
		</tbody>
	</table>
	<div id="myAlert-bean" class="modal hide" aria-hidden="true" style="display: none;">
		<div class="modal-header">
			<button data-dismiss="modal" class="close" type="button">×</button>
			<h3>删除</h3>
		</div>
		<div class="modal-body">
			<p>内容删除之后将不能够恢复，确定要做删除吗？</p>
		</div>
		<div class="modal-footer"> <a data-dismiss="modal" class="btn btn-primary data-del-bean-alert" href="__CONTROLLER__/foreverdelete">确定</a>
			<a data-dismiss="modal" class="btn" href="#">取消</a> </div>
	</div>
	<!-- page -->
	<include file="Template:main/page" />
</block>